cmake_minimum_required(VERSION 1.0.0)

project(conn-redis)

set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)

include_directories(./include ./vendor/hiredis)

set(REDISRC
    ./vendor/hiredis/alloc.c
    ./vendor/hiredis/async.c
    ./vendor/hiredis/hiredis.c
    ./vendor/hiredis/net.c
    ./vendor/hiredis/read.c
    ./vendor/hiredis/sds.c)

add_executable(conn-redis ${REDISRC} main.cpp)
